__wxCodeSpace__.batchAddCompiledTemplate(function (G, R, D, Q, gdc, X, Y, Z) {
  return {
    "components/privacyPopup/privacyPopup": (() => {
      var P = "components/privacyPopup/privacyPopup";
      var H = {};
      var I = {};
      H[""] = I[""] = (R, C, D, U) => {
        var L = R.c;
        var M = R.m;
        var O = R.r;
        var A = {};
        var K = U === true;
        return {
          C: (C, T, E, B) => {
            var a = D.innerShow ? 1 : 0;
            B(a, (C, T, E) => {
              if (a === 1) {
                E(
                  "view",
                  {},
                  (N, C) => {
                    if (C) L(N, "view-privacy-bg");
                  },
                  (C, T, E) => {
                    E(
                      "view",
                      {},
                      (N, C) => {
                        if (C) L(N, "view-privacy-diag");
                      },
                      (C, T, E) => {
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-title");
                          },
                          (C, T) => {
                            C || K || U.title ? T(Y(D.title)) : T();
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-content");
                          },
                          (C, T, E) => {
                            C || K || !!U.desc1 || undefined
                              ? T(Y(" " + Y(D.desc1) + "："))
                              : T();
                            E(
                              "text",
                              {},
                              (N, C) => {
                                if (C) R.y(N, "color:blue");
                                if (C) R.r(N, "bindtap", "openPrivacyContract");
                              },
                              (C, T) => {
                                C || K || U.urlTitle ? T(Y(D.urlTitle)) : T();
                              }
                            );
                            C || K || !!U.desc2 || undefined
                              ? T(Y(Y(D.desc2) + " "))
                              : T();
                          }
                        );
                        E(
                          "view",
                          {},
                          (N, C) => {
                            if (C) L(N, "view-privacy-btn");
                          },
                          (C, T, E) => {
                            E(
                              "button",
                              {},
                              (N, C) => {
                                if (C) R.i(N, "disagree-btn");
                                if (C)
                                  R.y(N, "color: #000; font-weight: normal;");
                                if (C) O(N, "type", "default");
                                if (C) R.r(N, "bindtap", "handleDisagree");
                                if (C) L(N, "btn-privacy");
                              },
                              (C, T, E) => {
                                C ? T("不同意 ") : T();
                                E(
                                  "text",
                                  {},
                                  (N, C) => {
                                    if (C)
                                      R.y(N, "font-size: 20rpx;color: #10aeff");
                                  },
                                  (C, T) => {
                                    C ? T("(仅进入浏览模式)") : T();
                                  }
                                );
                              }
                            );
                            E(
                              "button",
                              {},
                              (N, C) => {
                                if (C) R.i(N, "agree-btn");
                                if (C)
                                  R.y(
                                    N,
                                    "background-color: #10aeff; color: #fff;"
                                  );
                                if (C) O(N, "type", "default");
                                if (C) L(N, "btn-privacy");
                                if (C)
                                  O(
                                    N,
                                    "open-type",
                                    "agreePrivacyAuthorization"
                                  );
                                if (C)
                                  R.r(
                                    N,
                                    "bindagreeprivacyauthorization",
                                    "handleAgree"
                                  );
                              },
                              (C, T) => {
                                C ? T("同意并继续") : T();
                              }
                            );
                          }
                        );
                      }
                    );
                  }
                );
              }
            });
          },
          B: A,
        };
      };
      return function (P) {
        return H[P];
      };
    })(),
  };
});
__wxRoute = "components/privacyPopup/privacyPopup";
__wxRouteBegin = true;
__wxAppCurrentFile__ = "components/privacyPopup/privacyPopup.js";
define(
  "components/privacyPopup/privacyPopup.js",
  function (
    require,
    module,
    exports,
    window,
    document,
    frames,
    self,
    location,
    navigator,
    localStorage,
    history,
    Caches,
    screen,
    alert,
    confirm,
    prompt,
    XMLHttpRequest,
    WebSocket,
    Reporter,
    webkit,
    WeixinJSCore
  ) {
    "use strict";
    Component({
      data: {
        title: "用户隐私保护提示",
        desc1: "感谢您使用跑步记录助手，您使用本小程序前应当阅读并同意",
        urlTitle: "《用户隐私保护指引》",
        desc2:
          "。当您点击同意并开始使用跑步记录助手时，即表示您已理解并同意该条款内容。如您拒绝，将只能进入浏览模式",
        innerShow: !1,
        height: 0,
      },
      lifetimes: {
        attached: function () {
          var t = this;
          wx.getPrivacySetting
            ? wx.getPrivacySetting({
                success: function (e) {
                  console.log(
                    "是否需要授权：",
                    e.needAuthorization,
                    "隐私协议的名称为：",
                    e.privacyContractName
                  ),
                    e.needAuthorization
                      ? t.triggerEvent("disagree")
                      : t.triggerEvent("agree");
                },
                fail: function () {},
                complete: function () {},
              })
            : this.triggerEvent("agree");
        },
      },
      methods: {
        handleDisagree: function (t) {
          this.triggerEvent("disagree"), this.disPopUp();
        },
        handleAgree: function (t) {
          this.triggerEvent("agree"), this.disPopUp();
        },
        popUp: function () {
          this.setData({ innerShow: !0 });
        },
        disPopUp: function () {
          this.setData({ innerShow: !1 });
        },
        openPrivacyContract: function () {
          wx.openPrivacyContract({
            success: function (t) {
              console.log("openPrivacyContract success");
            },
            fail: function (t) {
              console.error("openPrivacyContract fail", t);
            },
          });
        },
      },
    });
  },
  {
    isPage: false,
    isComponent: true,
    currentFile: "components/privacyPopup/privacyPopup.js",
  }
);
require("components/privacyPopup/privacyPopup.js");
